//
//  NSData+CAIStorageBase64.h
//  CAIDBManager
//
//  Created by simon on 2021/11/5.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSData (CAIStorageBase64)


+ (NSData *)base64EncodedData:(id)object error:(NSError * __autoreleasing *)error;

+ (id)base64DecodedData:(NSData *)base64Data
                  class:(Class)cls
error:(NSError * __autoreleasing *)error;


+ (NSString *)caiDBDecode:(NSString *)base64String;

+ (NSString *)caiDBEncode:(NSString *)string;


@end

NS_ASSUME_NONNULL_END
